package com.aircms.common;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class ResponseCodeAndMsg {
    private Map map=new HashMap();

    public Map getMap() {
        this.map.put(1,"ok");
        this.map.put(-1,"系统异常，操作失败");
        this.map.put(-2,"操作失败:");
        this.map.put(-100,"认证失败:token过期或非法");
        this.map.put(-101,"token不能为空");
        this.map.put(-102,"用户名或密码错误");

        this.map.put(-110,"您没有权限，请联系管理员");

        this.map.put(-500,"系统异常：");

        this.map.put(-900,"查无数据");

        this.map.put(-800,"提交数据不合法：");
        return map;
    }

}
